<div>
    <table class="tbl-list" width="100%" cellpadding="0" cellspacing="0" border="1">
        <thead>
			<tr>
				<th class="td-label bold text-center" width="41">
					Stt
				</th>
				
				<th class="td-label bold ">
					URL
				</th>
			</tr>
		</thead>
        
        <tbody> 
        <?php $index=1+($page-1)*$numrow; 
        foreach($url as $temp)
        {
            $bgcolor = ($index%2==0)?'#efefef':'#ffffff';
        ?>
			<tr style="background-color:<?php echo $bgcolor;?>;">
				<td class="ver-middle text-center">
					<p class="db-list-cl-stt" style="width: auto;">
						<?php echo $index;?>
					</p>
				</td>
				
				<td class="ver-middle">
					<p style="margin: 5px 8px;overflow: hidden;width: 682px;">
                        <a target="_blank" href="<?php echo site_url('bannerdetail/urltracking?zoneid='.$temp['zoneid'].'&domain='.$this->mycommon->getDomainFromUrl($temp['url']).'&bannerid='.$bannerid.'&url='.$temp['url']);?>"><?php echo $temp['url'];?></a>
					</p>
				</td>
			</tr>
        <?php
            $index++;
        }
        ?>
        </tbody>	
	</table>
</div>
<div id="pager" style="font-family: tahoma;border: solid 1px #D6D6D6;width: 190px;float: right; margin-top: 10px;background-color: white;padding:3px 10px 3px 10px">
	<form>
        <span style="vertical-align: middle;"><?php echo $bannerdetail_lang['page'];?></span>
        <input type="text" class="pagedisplay" size="5" style="border:0;vertical-align: middle;" value="<?php echo $page.'/'.$totalpage;?>"/>
		<img src="/images/imgpre.gif" class="prev" id="prev" style="vertical-align: middle;" <?php echo ($page>1)? 'onclick="prev_page1();"':'';?>/>
		<img src="/images/imgnext.gif" class="next" id="next" style="vertical-align: middle;" <?php echo ($page<$totalpage)? 'onclick="next_page1();"':'';?>/>
		<select class="pagesize" style="vertical-align: middle;border: 0 none;background: #fff;" id="pagesize" onchange="pagesize1()">
			<option value="20" <?php echo ($numrow==20) ? 'selected="selected"':'' ;?>>20</option>
			<option value="30" <?php echo ($numrow==30) ? 'selected="selected"':'' ;?>>30</option>
			<option value="40" <?php echo ($numrow==40) ? 'selected="selected"':'' ;?>>40</option>
		</select>
	</form>
</div>
<script type="text/javascript">
    function next_page1()
    {
        if(<?php echo $page?> >= <?php echo $totalpage?>)
        {
            var page =<?php echo $totalpage;?>;
        }else{
            var page = <?php echo $page?>+1; 
        }
        var numrow = $('#pagesize').val();
        var strURL="<?php echo site_url('bannerdetail/ajax_trackBanner?bannerid='.$bannerid);?>&page="+page+'&numrow='+numrow;
        var success = function(data)
        {
        	$('#table').html(data);
        };
    	getAjax(strURL,"",'', '', '', false, success);
    }
    function prev_page1()
    {
        if(<?php echo $page?>==1)
        {
            var page =1;
        }else{
            var page = <?php echo $page?>-1; 
        }
        var numrow = $('#pagesize').val();
        var strURL="<?php echo site_url('bannerdetail/ajax_trackBanner?bannerid='.$bannerid);?>&page="+page+'&numrow='+numrow;
        var success = function(data)
        {
        	$('#table').html(data);
        };
    	getAjax(strURL,"",'', '', '', false, success);
    }
</script>